package com.hnust.wswx.moblieStuBack.service.impl;


import com.hnust.wswx.moblieStuBack.dao.StudentDao;
import com.hnust.wswx.moblieStuBack.domain.Student;
import com.hnust.wswx.moblieStuBack.service.LoginService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service("loginService")
public class LoginServiceImpl implements LoginService {

    @Autowired
    private StudentDao studentDao;
    @Override
    public Boolean StudentLogin(String account, String password) throws Exception {
        Student student = studentDao.getPasswordByAccount(account,password);
        if (student!=null){
            return true;
        }
        return false;
    }
}
